//
//  Header.h
//  XFXnews
//
//  Created by dllo on 16/1/28.
//  Copyright © 2016年 lanou. All rights reserved.
//

#ifndef Header_h
#define Header_h

// 适配专用
#define XFXSWID [[UIScreen mainScreen] bounds].size.width / 414
#define XFXSHEI [[UIScreen mainScreen] bounds].size.height / 736
//屏幕尺寸
#define FULL_SCREEN [[UIScreen mainScreen] bounds]
#define CURRENTSCEEN [UIScreen mainScreen].bounds
//屏幕大小
#define FULL_SIZE [[UIScreen mainScreen] bounds].size
//屏幕宽
#define XFXWIDTH [[UIScreen mainScreen] bounds].size.width
//屏幕高
#define XFXHEIGHT [[UIScreen mainScreen] bounds].size.height
//坐标点
#define WID [[UIScreen mainScreen] bounds].size.width / SCREEN_WIDTH
#define HEI [[UIScreen mainScreen] bounds].size.height / SCREEN_HEIGHT
#define HEIGHT_NOBAR [[UIScreen mainScreen] bounds].size.height-64
#define HEIGHT_TABLE [[UIScreen mainScreen] bounds].size.height-111
//沙盒路径
#define  DOCUMENT  [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]
#define COLOR_NORMAL [UIColor colorWithRed:0.57 green:0.57 blue:0.57 alpha:1]
#define COLOR_SELECTED [UIColor colorWithRed:0.98 green:0.35 blue:0.16 alpha:1]
//打印
#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif

#import "UIImageView+WebCache.h"
#import "MJRefresh.h"
#import "AFNetworking.h"
#import "XFXAFNAppTools.h"



#endif /* Header_h */
